// renying.c

inherit NPC;
string inquiry_linghuchong();

void create()
{
        set_name("任盈盈", ({ "ren yingying","ren","ying"}) );
        set("gender", "女性" );
        set("age", 20);
        set("shen_type", 1);
        set("combat_exp", 500000);
        set("per", 30);
        set("str", 16);
        set("dex", 27);
        set("con", 17);
        set("int", 18);
        set("attitude", "friendly");
        set("chat_chance",60);
            set("chat_msg",({
        "任盈盈说道：不知令狐冲他，怎样了，是否又和那小贱人在一起......\n",
        "任盈盈说道：你若能把这封信捎给他，可太谢谢你了.............\n",
        "任盈盈说道：也不知蓝凤凰见没见到他，可真急死我了.......\n",
           }) );
       
           create_family("日月神教",2,"弟子 圣姑");
       set("inquiry",([
           "令狐冲" : (: inquiry_linghuchong:),
           ]) );
       set_temp("letter",1);
       setup();
       carry_object("/clone/cloth/female5-cloth")->wear();
        carry_object("/d/heimuya/npc/obj/jin")->wear();
       carry_object("/d/heimuya/npc/obj/letter");
}

string inquiry_linghuchong()
{
 object me=this_player();
 object obn;

 message_vision("任盈盈说道：去年上华山一去就再无音信，他不会忘记我吧......\n", me );
 if(query_temp("letter")==0)
 {  message_vision("任盈盈又说道：这位"+ RANK_D->query_respect(me)+"，我已经派
蓝凤凰去寻找了，也不知道怎么样了。\n",me);
   return "";
 }
   message_vision("任盈盈又说道：这位"+ RANK_D->query_respect(me)+"，我这里有
信，你要是找到令狐冲，就把信交给他，他会明白的。\n" , me);
   obn=new("/d/heimuya/npc/obj/letter");
   obn->move(me);
   set_temp("letter",0);
   
   return ("这封信烦你交给令狐冲。\n");
}
